package rejaw.api.data
{
	/**This object contains information about a Rejaw message
	 * 
	 * @author Bryan Bartow | bryanbartow@gmail.com | http://www.bryanbartow.com
	 * */
	public class RejawMessage
	{
		public var type         : String;
		public var timeStamp    : String;
		public var userName     : String;
		public var fullName     : String;
		public var cid          : String;
		public var serialNumber : String;
		public var imageURL     : String;
		public var text         : String;
		
		public function RejawMessage( message : Object = null )
		{
			if( message != null )
			{
				buildRejawMessage( message );
			}
		}
		
		public function buildRejawMessage( message : Object ) : void
		{
			type = message.type;
			timeStamp = message.timestamp;
			userName = message.username;
			fullName = message.fullname;
			cid = message.cid;
			serialNumber = message.serial_number;
			imageURL = message.image_url;
			text = message.text;
		}
	}
}